import {ajax,base} from './config'

/**
*学习列表
*/
// 获取列表
export const getLearnList = params => { return ajax.getMinData({url:`${base}learningController/datagrid.do`, params}); };
// 查看
export const checkLearnList = params => { return ajax.getMinData({url:`${base}learningController/getLearningById.do`, params}); };
// 编辑
export const learnListEdit = params => { return ajax.postData({url:`${base}learningController/doUpdate.do`, params}); };
// 删除
export const removeLists = params => { return ajax.postData({url:`${base}learningController/doDel.do`, params}); };
// 导出
export const downWord = params => { return ajax.postData({url:`${base}learningController/exportWord.do`, params}); };
// 发布学习
export const learnAdd = params => { return ajax.getMinData({url:`${base}learningController/doAdd.do`, params}); };
//参与学习
export const joinLearn = params => { return ajax.postData({url:`${base}api/learningPerson/sign.do`, params}); };
